home *** CD-ROM | disk | FTP | other *** search
/ SGI Varsity Update 1998 August / SGI Varsity Update 1998 August.iso / dist / patchSG0002777.idb / var / sysgen / master.d / kernel.z / kernel
Text File  |  1998-07-29  |  3KB  |  126 lines

  1. **************************************************************************
  2. * Copyright 1990-1992, Silicon Graphics, Inc. 
  3. * All Rights Reserved.
  4. *
  5. * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6. * the contents of this file may not be disclosed to third parties, copied or 
  7. * duplicated in any form, in whole or in part, without the prior written 
  8. * permission of Silicon Graphics, Inc.
  9. *
  10. * RESTRICTED RIGHTS LEGEND:
  11. * Use, duplication or disclosure by the Government is subject to restrictions 
  12. * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13. * and Computer Software clause at DFARS 252.227-7013, and/or in similar or 
  14. * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished - 
  15. * rights reserved under the Copyright Laws of the United States.
  16. **************************************************************************
  17. *
  18. *#ident    "$Revision: 3.188 $
  19. *
  20. * KERNEL
  21. *
  22. *FLAG    PREFIX    SOFT    #DEV    DEPENDENCIES
  23. k    -     -      -
  24.     
  25. $$$
  26.  
  27. /*    kernel:    */
  28. #include <sys/types.h>
  29. #include <sys/buf.h>
  30. #include <sys/edt.h>
  31. #include <sys/vmereg.h>
  32. #include <sys/sema.h>
  33. #include <sys/dvh.h>
  34. #include <sys/elog.h>
  35. #include <sys/fstyp.h>
  36. #include <sys/iobuf.h>
  37. #include <sys/log.h>
  38. #include <sys/map.h>
  39. #include <sys/param.h>
  40. #include <sys/pda.h>
  41. #include <sys/sbd.h>
  42. #include <sys/strmp.h>
  43. #include <sys/strsubr.h>
  44. #include <sys/sysmacros.h>
  45. #include <sys/time.h>
  46. #include <sys/tuneable.h>
  47. #include <sys/utsname.h>
  48. #include <sys/vfs.h>
  49. #include "bwhen.h"
  50.  
  51. /*
  52.  * Root filesystem type.  This array can be initialized to a valid
  53.  * filesystem type name to force root to a particular fstype.
  54.  */
  55. char rootfstype[FSTYPSZ] = "";
  56.  
  57.  
  58. /*
  59.  * These are used to initialize the utsname struct
  60.  */
  61. char    uname_release[] = BWHEN_REL;
  62. char    uname_releasename[] = BWHEN_RELNAME;
  63. char    uname_version[] = BWHEN_VER;
  64.  
  65. #if R4000 && JUMP_WAR
  66. /*
  67.  * Enables a workaround for a bug in early Revisions of the R4000.
  68.  * This bug exists in at least Rev 2.2 and before.  
  69.  */
  70.  
  71. /* Attempt to correct jumps at the end of pages. */
  72. int R4000_jump_war_correct = 0;
  73.  
  74. /* Attempt to correct divides at end of pages. This is
  75.  * on for all 2.2SC and 3.0SC parts, since that bug exists
  76.  * in those revisions.
  77.  */
  78. int R4000_div_eop_correct = 0;
  79.  
  80. /* Warn the user and log in SYSLOG, if unable to correct */
  81. int R4000_jump_war_warn = 1;
  82.  
  83. /* Kill the process if unable to correct. */
  84. int R4000_jump_war_kill = 1;
  85.  
  86. /* Handle ANY jump/branch at the end of a page as a problem */
  87. int R4000_jump_war_always = 0;
  88.  
  89. #ifdef _R5000_JUMP_WAR
  90. int R5000_jump_war_correct = 0;
  91. #endif /* _R5000_JUMP_WAR */
  92. #endif
  93.  
  94. #ifdef IP21
  95. int ip21_bbcc_gfx = 0;
  96. #endif
  97.  
  98. #if TFP
  99. /* Reject non-shared a.out's that have the OHW_R8KPFETCH flag
  100.  * set in int PT_OPTIONS section of the elf program header.
  101.  */
  102. int chk_ohw_r8kpfetch = 1;
  103. #endif
  104.  
  105. #if ! R4000
  106. int R4000_badva_war = 0;
  107. #else
  108. int R4000_badva_war = 1;
  109. #endif
  110.  
  111. #ifdef TRITON /* normally _R5000_CVT_WAR */
  112. int R5000_cvt_war = 1;
  113. #endif /* TRITON */ /* normally _R5000_CVT_WAR */
  114.  
  115. /* Setup the miniroot variable for kernel miniroot configuration */
  116. #ifdef MINIROOT
  117. u_char miniroot = 1;
  118. #else
  119. u_char miniroot = 0;
  120. #endif
  121.  
  122. uint defaultsemameter = DEFAULTSEMAMETER;
  123.  
  124. extern int nopkg(void);
  125. extern void noreach(void);
  126.